<div id="mess"><?php if (isset($mess)) echo $mess; ?></div>
<div id="form">
<table>
  <?php
   //$this->form_validation->set_error_delimiters('<span class="error">', '</span>');
   foreach ($users as $user){
      $pole_users[$user['id']] = $user['surname']." ".$user['first_name'];    
   }
   echo form_open( base_url().'admin/deleteuser');
   $js = "return confirm('Označený používateľ bude natrvalo vymazaný!')";
   echo "<tr><td>".form_label('Vyberte používateľa:', 'user')."</td><td>".form_dropdown('user', $pole_users )."</td>";
   echo "<td>".form_submit('submit', 'odstráň', 'id="submit_edit" onclick="'.$js.'"')."</td></tr>";
 
   echo form_close();
  ?>    
</table>
</div>
